#include "mainwindow.h"
#include "yesnodialog.h"
#include <QDialog>
#include <QDebug>
#include <QColorDialog>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    dialog = new YesNoDialog(this);
    this->setGeometry(0, 0, 800, 480);
    mOpenDialog = new QPushButton(this);
    mOpenDialog->setGeometry(200, 200, 50, 20);
    connect(mOpenDialog, &QPushButton::clicked, this, &MainWindow::openDialog);
}

MainWindow::~MainWindow()
{

}

void MainWindow::openDialog()
{
    dialog->show();
    qDebug() << dialog->getClickNumber() << endl;
    qDebug() << dialog->getDialogShowTime() << endl;
}
